package com.ghxxzx.daglcustom.second.service;

import org.activiti.engine.delegate.DelegateTask;
import org.activiti.engine.delegate.TaskListener;

public class MyUserCheckListener implements TaskListener {

	private static final long serialVersionUID = 1L;

	@Override
	public void notify(DelegateTask delegateTask) {
		String assignee = delegateTask.getAssignee();
		System.err.println("------------MyUserCheckListener----------------------------" + assignee);
		if ("zhangsan1".equals(assignee)) {
			delegateTask.setVariable("assignx2", "lisi1");
		} else if ("zhangsan2".equals(assignee)) {
			delegateTask.setVariable("assignx2", "lisi2");
		}
	}

}
